package com.happycat.console.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.happycat.console.commen.aspactj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * 礼品对象 cat_gift
 * 
 * @author verne
 * @date 2020-07-18
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("cat_gift")
@ApiModel(value="礼品对象", description="礼品对象数据")
public class CatGift implements Serializable {

private static final long serialVersionUID=1L;


    /** ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 类型 */
    @Excel(name = "类型")
    @ApiModelProperty(value = "类型：0.普通礼物, 1.特权礼物, 2.免费礼物")
    private String giftType;

    /** 名称 */
    @Excel(name = "名称")
    @ApiModelProperty(value = "名称")
    private String name;

    /** 图片 */
    @Excel(name = "图片")
    @ApiModelProperty(value = "图片")
    private String giftImg;

    /** 兑换值 */
    @Excel(name = "兑换值")
    @ApiModelProperty(value = "猫粮所需值")
    private Long foodNumber;

    /** 礼物位置 */
    @Excel(name = "礼物位置")
    @ApiModelProperty(value = "礼物位置:0单聊位置，1聊天室位置")
    private Long position;

    /** 等级/身份 */
    @Excel(name = "等级")
    @ApiModelProperty(value = "等级")
    private Long level;
    /** 等级/身份 */
    @Excel(name = "身份")
    @ApiModelProperty(value = "身份")
    private Long noble;

    /** 经验加成 */
    @Excel(name = "经验加成")
    @ApiModelProperty(value = "经验加成")
    private Integer experience;

    /** 间隔时长(分) */
    @Excel(name = "间隔时长(分)")
    @ApiModelProperty(value = "间隔时长(分)")
    private Long intervalTime;

    /** 排序 */
    @Excel(name = "排序")
    @ApiModelProperty(value = "排序")
    private Long sort;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /** 创建人 */
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /** 状态 */
    @Excel(name = "状态")
    @ApiModelProperty(value = "状态：0不可用，1可用")
    private Long status;
}
